import { axios } from "../../../utils/request";

const api = {
    pageCrmCallBaseSetting: "/crm/callBaseSetting/pageCrmCallBaseSetting",  //分页查询 套餐
    saveCrmCallBaseSetting: "/crm/callBaseSetting/saveCrmCallBaseSetting",  //保存套餐
    batchEnable:"/crm/callBaseSetting/batchEnable",                               //批量启用
    batchDisable:"/crm/callBaseSetting/batchDisable",                             //批量禁用
    deleteByIds:"/crm/callBaseSetting/deleteByIds",                               //批量删除
    saveBaseSettingOrder:"/crm/callBaseSetting/saveBaseSettingOrder",             //新购/变更套餐
    
};


/**
 * 分页查询 套餐
 */
export function pageCrmCallBaseSetting(data) {
    return axios({
      url: api.pageCrmCallBaseSetting,
      method: "post",
      data: data
    });
}

/**
 * 保存
 */
 export function saveCrmCallBaseSetting(data) {
    return axios({
      url: api.saveCrmCallBaseSetting,
      method: "post",
      data: data
    });
}

/**
 * 批量启用
 */
export function batchEnable(data) {
    return axios({
      url: api.batchEnable,
      method: "post",
      data: data
    });
}

/**
 * 批量禁用
 */
 export function batchDisable(data) {
    return axios({
      url: api.batchDisable,
      method: "post",
      data: data
    });
}


/**
 * 批量删除
 */
 export function deleteByIds(data) {
    return axios({
      url: api.deleteByIds,
      method: "post",
      data: data
    });
}

/**
 * 新购/变更套餐
 */
 export function saveBaseSettingOrder(data) {
    return axios({
      url: api.saveBaseSettingOrder,
      method: "post",
      params: data
    });
}
